<?php
namespace app\admin\logic;
use think\facade\Db;
use think\facade\Request;
use think\facade\View;
class OrderLogic
{
    public static function getWhere()
    {
        $where=[];

        $sid=Request::param("sid",'');
        View::assign('sid',$sid);
        $keywords=Request::param("keywords",'',"trim");
        View::assign('keywords',$keywords);
        if (!empty($sid)){
            $where['status'] = $sid;
        }
        if (!empty($keywords)){
            $where['keywords']=$keywords;
        }
        $orderStatus_list=Db::name("order_status")->select();
        View::assign('orderStatus_list',$orderStatus_list);

        return $where;
    }
}